Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: URL Rewriting problems |
|
Author |
|
designermonkey
Joined: 05 May 2009 Posts: 1 Location: England
|
Posted: Tue 05 May '09 20:30 Post subject: URL Rewriting problems |
|
|
I'm new to Apache URL Rewriting and I'm having a few problems. My CMS has generated the following code in my .htaccess file:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_URI} !(\.|/$)
RewriteRule ^.*$ http://dominicmifsud%{REQUEST_URI}/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^.*$ - [S=2]
RewriteRule feed/$ plog-rss.php?path=%{REQUEST_URI} [L]
RewriteRule ^.*$ index.php?path=%{REQUEST_URI} [L]
</IfModule>
I kind of get the basics of what this is doing, but I need to add the following in there somewhere:
RewriteRule ^contact$ contact/ [R]
RewriteRule ^contact/$ sscf-contact.php
RewriteRule ^about$ about/ [R]
RewriteRule ^about/$ ssbs-entries.php?entry=1
When I try and add this, it breaks my css and javascript links, and doesn't much work.
Anyone know how to add this successfully?? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Tue 26 May '09 23:42 Post subject: |
|
|
Since here wasn't an answer you shoud ask the guys from the rewrite forum |
|
Back to top |
|
|
|
|
|
|