Jump to content

Cannot understand what is wrong with mod_rewrite


Dantonybrown

Recommended Posts

:wtf:

 

I cannot understand what is wrong with this. Can someone help me? Both the .htaccess and English-Lighthouse-Page.php are located in the same directory

 

Options +FollowSymLinks

Options +Indexes

RewriteEngine On

RewriteRule ^English-Lighthouses/(*)$ English-Lighthouses-Page.php?Lighthouse=$1

 

 

Link to comment
Share on other sites

Is this a cut-and-paste, or did you type it?

 

There is a missing period:

 

Options +FollowSymLinks
Options +Indexes
RewriteEngine On
RewriteRule ^English-Lighthouses/(.*)$ English-Lighthouses-Page.php?Lighthouse=$1
#---------------------------------^ Right There

 

Otherwise, it could be an issue with the directory name. Is this at your DOCUMENT ROOT or is it in a sub-directory? I'm not a genius at this, so if the missing period is not the problem, you might post your directory structure so someone with more mod_rewrite experience can take a swing at it.

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.