Welcome Guest, Not a member yet? Register   Sign In
URL Rewrite Rules for IIRF
#11

[eluser]Clooner[/eluser]
I believe the easiest way of doing it is using a redirect. Catch the old url and then redirect it to the new structure.

Use [R] in not of [L] to have it redirect in not rewrite...
#12

[eluser]jeffersonrpn[/eluser]
I tried to use rewrite rules and it works great at my localhost.

I use these rules (NOTE: the application is on http://localhost/mysite/):

Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|imagens|robots\.txt|(.*).css)
RewriteRule ^(.*)$ /mysite/index.php/$1 [L]

But in the server on the web I have another results. Any URL redirects to the index page of the site. i.e. http://www.mysite.com/shop/product redirects to http://www.mysite.com/index.php

The images and CSS works fine but I can't go to another page but index. Whats wrong?

The site is in /home/mysite/public_html/

Thanks!

OBS.: Sorry if my english is poor.




Theme © iAndrew 2016 - Forum software by © MyBB