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
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

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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......

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.