Going on, this might be an appealing way of circumventing some of the problems associated with mod_rewrite but let's say your system depends on modules ( as do many ) so that you're unfriendly url looks like so
Your friendly-esk URL would look like so
Using mod_rewrite you can achieve domain.com/login which looks still more appealing then any of the url's your method. I'm not trying to defame your attempt to come up with alternatives to mod_rewrite merely state that mod_rewrite is much more flexible and gives much more control for urls.
The Following User Says Thank You to Enfernikus For This Useful Post:
@Enfernikus: Yes. You are definitely right, Mod_Rewrite is much more powerful than this method. But, the two methods could easily be used together to be more powerful that ether one alone! Again, a good example of this would be how CodeIgniter handles URLs.
You could use the following Mod_Rewrite code in a .htaccess file to remove the index.php:
RewriteCond $1 !^(index\.php|img|robots\.txt|anotherdir)
RewriteRule ^(.*)$ index.php/$1 [L]
i have a problem to use this module for change my link to seo.
i have a simple link:www.domain.com/product_desc.php?id=number
I use this rules:
RewriteRule ^product/([A-Za-z0-9-]+)/?$ product_desc.php?id=$1 [NC,L]
I change ([0-9]+) or (.*) or ([^.]+)and etc..
and i test similar flag too.[QSA]..
but not successfull because my order page show without picture and css and was added product/ in first other links in page
please help me to skip
i use - instead / in this method it worked.why?