Linked Questions

-1 votes
1 answer
101 views

Apache reverse rewrite [duplicate]

Is it possible to make the URL index.php?view=something back into /something?
Kyle's user avatar
  • 562
1 vote
1 answer
2k views

Need help with an .htaccess URL rewriter

I'm trying to do another SEO system with PHP/.htaccess... I need the following rules to apply: Must catch all URLs that do not end with an extension (www.foo.com --> catch | www.foo.com/catch-me --> ...
AlexV's user avatar
  • 179
0 votes
1 answer
637 views

Apache 1.3 mod_rewrite .htaccess loop

I'm about at my wits' end with mod_rewrite problems trying to deploy a CakePHP app on shared hosting with Apache 1.3. Despite using the default .htaccess files I seem to be plagued by rewrite loops ...
mikesname's user avatar
  • 141
0 votes
3 answers
2k views

Rewrite example.com to www.example.com [duplicate]

I want to rewrite urls to the www subdomain if the user omits it, i.e. example.com/something.html to www.example.com/something.html The config below doesn't work, user remains on example.com. There's ...
Mathias Conradt's user avatar
-1 votes
2 answers
4k views

mod_rewrite "Request exceeded the limit of 10 internal redirects due to probable configuration error." [duplicate]

What i want: Force www [works] Restrict access to .inc.php [works] Force redirection of abc.php to /abc/ Removal of extension from url Add a trailing slash if needed old .htaccess : Options +...
Shoaibi's user avatar
  • 819
1 vote
1 answer
96 views

.htaccess file? [duplicate]

Possible Duplicate: .htaccess file? Everything You Ever Wanted to Know about Mod_Rewrite Rules but Were Afraid to Ask? I am looking for exact code for creating .htaccess file used for redirect ...
user avatar
0 votes
1 answer
151 views

RewriteMap problem in .htaccess [duplicate]

Possible Duplicate: Everything You Ever Wanted to Know about Mod_Rewrite Rules but Were Afraid to Ask? I need to do one change in mywebsite. i have two websites. i want to redirect some of the ...
user avatar
-2 votes
2 answers
68 views

.htaccess file? [duplicate]

Possible Duplicate: Everything You Ever Wanted to Know about Mod_Rewrite Rules but Were Afraid to Ask? How to create .htaccess file for 301 permanent redirect. I am looking for exact code that we ...
user avatar
0 votes
1 answer
109 views

.htaccess rewrite rules [duplicate]

Possible Duplicate: Everything You Ever Wanted to Know about Mod_Rewrite Rules but Were Afraid to Ask? The below code adds www. to any url that does not start with it: RewriteCond %{HTTPS} !on [...
psx's user avatar
  • 235
0 votes
1 answer
46 views

Need some HTAccess Magic [duplicate]

I am migrating to a new reseller hosting plan. By default, they expect me to create a new cPanel account for every domain I add but this would be hugely inconvenient. So I setup my addon domains in ...
pws5068's user avatar
  • 155
7 votes
5 answers
87k views

How do I use .htaccess to always redirect from HTTP to HTTPS? [duplicate]

There's a few similar questions which I tried to work out the answer from, but so far I have been unsuccessful. Please advise how I can always redirect http to https (and also remove www. from the ...
Nick Bolton's user avatar
  • 5,146
0 votes
2 answers
102 views

Redirect using htaccess [duplicate]

I want to redirect all traffic from the root of my website to a subfolder on the same domain using .htaccess Can someone help me out here?
user avatar
3 votes
1 answer
3k views

Subdomain doesn't work without www in front of it [duplicate]

I had a subdomain setup in cpanel before (sub.domain.com to redirect to domain.com/sub/) and suddenly today I noticed that it was rewriting the URL in the browser to www.domain.com/sub/ instead of ...
Choy's user avatar
  • 169
1 vote
2 answers
3k views

How can I use mod_rewrite to remove everything after the ? (question mark) in a URL? [duplicate]

How can I use mod_rewrite to remove everything after the ? (question mark) in a URL? For instance: http://127.0.0.1/ALL_FILES.php?test=1 after mod_rewrite: http://127.0.0.1/ALL_FILES.php For php ...
Rook's user avatar
  • 2,695
2 votes
3 answers
2k views

Apache2: Handling a subdirectory in another VirtualHost [duplicate]

I have a site with forums. The forums are currently at forums.example.com (a subdomain). I've heard that for SEO and usability in general it's better to have them at example.com/forums. Regarding ...
Bart van Heukelom's user avatar

15 30 50 per page