help with .htacess to modify url

Started on the old forum in September 2012 · view the original in the archive · old links redirect here

5 replies · 607 views · started 14 years ago · 1 min read

3 participants
allaie Junior · 13 posts #4

not working see full htacess

Not Working

 RewriteBase / RewriteEngine On

RewriteCond %{REQUEST_URI} !-d

RewriteCond %{REQUEST_URI} !-f

RewriteCond %{REQUEST_URI} !.php$

RewriteCond %{REQUEST_URI} !.css$

RewriteCond %{REQUEST_URI} !.jpg$

RewriteCond %{REQUEST_URI} !.png$

RewriteCond %{REQUEST_URI} !.gif$

RewriteRule ^(.*)$ /$1.php [L]

RewriteRule ^([^/]*).html$ /?dir=$1 [L]

Sanju Kr Developer · 104 posts #5

allaie wrote: Not Working

 RewriteBase / RewriteEngine On

RewriteCond %{REQUEST_URI} !-d

RewriteCond %{REQUEST_URI} !-f

RewriteCond %{REQUEST_URI} !.php$

RewriteCond %{REQUEST_URI} !.css$

RewriteCond %{REQUEST_URI} !.jpg$

RewriteCond %{REQUEST_URI} !.png$

RewriteCond %{REQUEST_URI} !.gif$

RewriteRule ^(.*)$ /$1.php [L]

RewriteRule ^([^/]*).html$ /?dir=$1 [L]

You have to edit your script too ....

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close