Jump to content

mod_rewrite help please


redarrow

Recommended Posts

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]

Link to comment
https://forums.phpfreaks.com/topic/109088-mod_rewrite-help-please/
Share on other sites

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

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

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.