» Home » Rewriting » Page 1
How to prevent rewriting href attributes when rewriting urls?
by jason166 in Programming Languages

on my web site i want to change url's from (just exemple):


site.com/showCategory.php?catId=34

to:


site.com/category/34/

Here is the contents of my .htaccess file:


<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^affichage/([0-9]+)$ /affichage/$1/ [R]
RewriteRule ^afficha

PHP, URL rewriting with htaccess, and Microsoft IIS Url Rewriting
by JustinDSN in Programming Languages

I am used to working with Apache servers, so when mod_rewrite is enabled, I can create an htaccess file and use URL rewriting.


Here's my htaccess file:


RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
How to do URL rewriting
by Finland in Development Tools & Services

I am very new to httpd server. And i have a immediate problem to solve. My server instance is running on centos box.


If a request comes to my server as


http://sub-domain.domain.com


This should be translated to


http://domain.com/key/sub-domain


I have configured many virtual host on my server. But this is quite a case and i am running o

TAGS : rewriting

mvc url rewriting
by Train in Programming Languages

so write now my Url looks like domain.comMyAction?var1=x&var2=y&var3=z.


Now, in order to make it more seo and user friendly, I want to abandon that way of writing and adopt this kind of url - doman.comMyActionxyz (obviously order matters now, which didn't matter in the previous url)


What is the best way to do this?


Currently:


return R
TAGS : rewriting

ASP.NET, IIS 6 and url rewriting
by ShortOne in Programming Languages

i've bought a shared hosting on a windows hoster with IIS 6.


I would like to know how to rewrite url.


I can't modify anything on the server, the only thing i can do is to use ... my asp.net code !
some advice ?


Thanks!

TAGS : rewriting

Rewriting a URL in Yii
by dlock13 in Programming Languages

I want to access a url in Yii using this url www.example.com/detail/post.


I should be able to process this url either to action detail with parameter having the value post or to some action having a named parameter detail and the value post.


I read the Yii documentation about createUrl but coul

TAGS : Rewriting

PHP URL Rewriting
by msmy300z in Development Tools & Services

I am setting up some rewrite rules on an Apache server using mod_rewrite. I was wondering if it was possible to write a rule that will basically re-direct the user to the home page if the page is not found i.e.


http://example.com/test <-- does not exist

However, I would like if the user was to navigate to this domain they are automatically re-directed to:

TAGS : Rewriting

IIS 7 URL Rewriting
by niswilsonnissen in Coding

I have been working this one for a few hours now trying get this to work. I have a CodeIgniter website that use to be on an Apache server running fine. I was using the Apache URL Rewriter for the URL in order to hide the index.php. For some reason I cannot get this to work on IIS. I have Googled it and came up with several different options but some either didn't work or redirected me to my roo

TAGS : Rewriting

IIS URL Rewriting
by rancherlee in Development Tools & Services

Using the URL Rewrite module, I've got a rule setup that is defined as:


Matches the pattern
Regular Expressions
Pattern: /support/viewmessages.aspx
Ignore Case: true
Action Type: Redirect
Redirect URL: http://newdomain/support/viewmessages.aspx
Append Query String: true
Redirect Type: 301

This sounds to me like it should red

TAGS : Rewriting

Rewriting with Apache
by Estonia in Development Tools & Services

I have this setup ..


/plain index file
/sub_dir1
/sub_dir2 (<-subdomain)
/sub_dir3
/blog (<-wordpress)
/etc/

but want this ..


/wordpress
/sub_dir1
/sub_dir2 (<-subdomain)
/sub_dir3
/etc/

Is this possible with wordpress' rewrite rules etc?
Any advice on the Apache rules?


Cheers,
Jeremy


Next
Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2014 © bighow.org All Rights Reserved .