WebFaction
Community site: login faq

In my Static/CGI/PHP application, I am trying to redirect any urls of the form http://www.mysite.com/city/blahblah to http://www.mysite.com/index.html/#city/blahblah. How can this be done with .htaccess rules?

I could not get this redirect to work. So I tried something simpler, in the form of:

<IfModule mod_rewrite.c>
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^$ index.html [L,R=301]
</IfModule>

However, even with this these rules, http://www.travyde.com/ffsdasdaf would give me a "The requested URL /ffsdasdaf was not found on this server." error. Shouldn't this rule redirect any http://www.travyde.com/* url to http://www.travyde.com/index.html?

Am I missing some configuration step here?

Any help would be greatly appreciated. Thanks!

asked 02 Oct '13, 20:22

hus
111
accept rate: 0%

It's not clear how this ties into your travyde.com domain; could you please log a support ticket with us? That will allow us to look at how the application is mounted to the domain etc. so that we can better assist you. Thank you,

(02 Oct '13, 21:31) waynek

Thanks waynek, will do!

(02 Oct '13, 22:47) hus
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×225
×76
×75
×4

question asked: 02 Oct '13, 20:22

question was seen: 2,931 times

last updated: 02 Oct '13, 22:47

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM