redarrow Posted June 7, 2008 Share Posted June 7, 2008 Advance thank you....... I want the index.php page to be, big_shoes/large_trousers/big_jeans/big_shoes-large_trousers-big_jeans.html As you can see i also want the bot to think there a folder there aswell.. But how please..... url index.php rewrite to big_shoes/large_trousers/big_jeans/big_shoes-large_trousers-big_jeans.html My example but it wrong please help........ RewriteEngine On RewriteRule ^index/([a-zA-Z0-9\-_\.\/]+)$ index/$1/ [R] RewriteRule ^big_shoes/large_trousers/big_jeans/([a-zA-Z0-9\-_\.\/]+)/$ big_shoes-large_trousers-big_jeans.html=$1 [L] Quote Link to comment Share on other sites More sharing options...
redarrow Posted June 7, 2008 Author Share Posted June 7, 2008 will this do it got no way off testing it cheers.. RewriteEngine On RewriteRule ^/index/[a-zA-Z\/\_\-\.]+$ big_shoes/large_trousers/big_jeans/big_shoes-large_trousers-big_jeans.html/ Quote Link to comment Share on other sites More sharing options...
redarrow Posted June 7, 2008 Author Share Posted June 7, 2008 tried this aswell RewriteEngine on RewriteRule ^(index[^/\.]+)/([^/\.]+)/?$ /big_shoes=$1&large_trousers=$2&big_jeans=$3? big_shoes-large_trousers-big_jeans.html [L] Quote Link to comment Share on other sites More sharing options...
redarrow Posted June 7, 2008 Author Share Posted June 7, 2008 If anybody now's how to mod_rewrite this url from index.php please help going mad here... http://www.mysite.com/index.php to http://www.mysite.com/big_shoes/large_trousers/big_jeans/big_shoes-large_trousers-big_jeans.html Quote Link to comment Share on other sites More sharing options...
sasa Posted June 7, 2008 Share Posted June 7, 2008 RewriteEngine on RewriteRule ^/index.php$ /big_shoes/large_trousers/big_jeans/big_shoes-large_trousers-big_jeans.html Quote Link to comment Share on other sites More sharing options...
beboo002 Posted June 7, 2008 Share Posted June 7, 2008 test this code RewriteEngine on RewriteBase '/' RewriteRule ^(.+)/(.+)/(.+)\.html$ index.php?big_shoes=$1&large_trousers=$2&big_jeans=$3[L] Quote Link to comment Share on other sites More sharing options...
redarrow Posted June 7, 2008 Author Share Posted June 7, 2008 hello all i am setting up mod_rewrite on my server but i got this line unchecked LoadModule rewrite_module modules/mod_rewrite.so Where is this line can not find it never seen a AddModule mod_rewrite.c before please help #AddModule mod_rewrite.c I am using windows and the latest apache/php/mysql if that helps Quote Link to comment Share on other sites More sharing options...
redarrow Posted June 7, 2008 Author Share Posted June 7, 2008 i have also add this to the config of apache # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit # AllowOverride All current url i am looking at to enable mod_rewrite as your see there a slight diffrence... http://www.biorust.com/tutorials/detail/226/en/ and http://www.sitepoint.com/article/guide-url-rewriting Quote Link to comment Share on other sites More sharing options...
redarrow Posted June 12, 2008 Author Share Posted June 12, 2008 shouldnt this change the url RewriteEngine on RewriteRule ^/index.php$ /big_shoes-large_trousers-big_jeans.html to www.what_ever.com/big_shoes-large_trousers-big_jeans.html but it dosen work please help thank you...... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.