Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- redirect by using .htaccess


lucy24 - 7:32 am on May 23, 2012 (gmt 0)


RewriteRule ^(.*) %1 [QSA,L]

and this is the resulting url I get: http://example.com/iphone?/iphone

So what am I doing wrong?

Guess you figured it out ;)


but, im not able to go EXTENSIONLESS

For that, you have to add a step: Rewrite (not Redirect) from the extensionless url to the real location of the text. It can be as simple as

RewriteRule ^([a-z]+)$ /$1.html [L]

or as complicated as

RewriteRule ^([a-z]+)/([a-z]+)/([a-z]+)$ /index.php?$1&$2&$3 [L]

Those are not real Rules! I'm just illustrating the range of possibilities.

Now, how did this thread get to have two entirely different questions and askers mixed into it?


Thread source:: http://www.webmasterworld.com/apache/4455805.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com