View Full Version : url rewrite issue


itsmani1
06-07-2005, 03:54 AM
RewriteRule ^([A-Za-z]+]).html$ test1/new.html [L,NC]

see the above rule => i want to re-direct old.html to test1/new.html
is the rule defined above is correct ?

sarahk
06-08-2005, 12:29 AM
did you get your answer? (http://forums.digitalpoint.com/showthread.php?t=17991)

Sarah

itsmani1
06-08-2005, 12:54 AM
[QUOTE=sarahk]did you get your answer? (http://forums.digitalpoint.com/showthread.php?t=17991)

Sarah[/QUOTE]no....
it did not work giving HTTP 404 Not Found..

itsmani1
06-08-2005, 11:27 PM
i have the following 3 files in my rewrite-testfolder directory

shortandsweet1.html
frustrating.php
.htaccess

here is my .htaccess file code.

Options +FollowSymLinks
RewriteEngine On
RewriteRule ^shortandsweet.html /frustrating.php

now when i type ==>> http://localhost/rewrite-testfolder/shortandsweet.html
in my browser instead of redirecting me to http://localhost/rewrite-testfolder/frustrating.php it shows the page with message

Not Found
The requested URL /rewrite-testfolder/shortandsweet.html was not found on this server.

--------------------------------------------------------------------------------

Apache/1.3.23 Server at localhost Port 80

any solution plz...............

SEO Aaron
06-09-2005, 09:22 AM
Your mod_rewrite is loaded into your server config, Like your server supports mod_rewrite?

Maybe? try...

Options +FollowSymLinks
RewriteEngine On
RewriteRule ^shortandsweet\.html$ /rewrite-testfolder/frustrating.php

sarahk
06-09-2005, 01:04 PM
The docs say you don't need to, experience tells me otherwise

You MUST have a line with rewritebase in it

Sarah

itsmani1
06-09-2005, 08:53 PM
[QUOTE=sarahk]The docs say you don't need to, experience tells me otherwise
You MUST have a line with rewritebase in it
Sarah[/QUOTE]
sorry i did not get what you said man....


M. Abdul Mannan
Islamabad, Pakistan
abdul.mannan@hotmail.com
http://www.dizyn.com