Mod Rewrite not working on my addon domain
Posted
by
Ogugua Belonwu
on Pro Webmasters
See other posts from Pro Webmasters
or by Ogugua Belonwu
Published on 2010-10-03T17:34:34Z
Indexed on
2011/01/10
3:58 UTC
Read the original article
Hit count: 270
php
|url-rewriting
have a wordpress website on my main domain
For the wordpress website i have this in my .htaccess file
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php
</IfModule>
# END WordPress
I just created an addon domain and wanted to use new rules for it
I created a .htaccess file and put it inside the addon folder eg /newaddon
In the .htaccess file i have:
Options -Indexes
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^readjob/(.*)/(.*)/(.*)/$ readjob.php?id=$1&cat=$2&title=$3
</IfModule>
The url stucture i have is this:
http://www.website.com/readjob/3/jobs/web-designers-potech-integrated-services/
But it keeps telling me link is broken
I dont know what to do, pls i need assistance
(pls i just learnt mod rewriting today, so clarity will be highly appreciated)
Thanks
© Pro Webmasters or respective owner