Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2005-11-22 14:44:17
- hscbaj
- New Member
- Registered: 2005-11-22
- Posts: 2
New to Txtptn. Mod-rewrite problem?
Hi,
Ive been lumbered at my new job with reskinning our website. First i want to get the thing working locally.
Ive copied over the website + db. However, whenever I go into each “section” i get a 404. Instantly I thought this was a mod_rewrite issue, from reading this forum I can see I was proably write.
my .htaccess is copied from the live one on the website and renamed the site references from xxxxx.com to localhost, and enabled mod_rewrite on my apache2 server, but still no joy…
my .htaccess looks like:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) – [PT,L]
RewriteRule ^(.*) index.php
RewriteCond %{HTTP_HOST} ^localhost$ [NC]
RewriteRule ^(.*)$ http://localhost%{REQUEST_URI} [R=301]
current working site is at
www.mirashade.com
Offline
Re: New to Txtptn. Mod-rewrite problem?
Try putting this at the top of your .htaccess: Options +FollowSymLinks
Refresh Dallas and other Refreshing Cities.
Offline
#3 2005-11-22 15:14:30
- hscbaj
- New Member
- Registered: 2005-11-22
- Posts: 2
Re: New to Txtptn. Mod-rewrite problem?
thanks, but that didnt work :(
Offline
#4 2005-11-22 22:28:40
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Offline
Pages: 1