4
votes
1answer
37 views

Statically mapping a PHP script to another script using an .htaccess file results in 404 errors

After having read a lot of posts on the topic of URL rewriting, I still remain stuck with 404 status errors. My goal: A 'static' rewrite of URLs, as follows (user clicks or enters the one ...
2
votes
1answer
33 views

Problem with htaccess rewrite condition

I needed to redirect site.com/var1/var2/var3/... to site.com/index.php?myvars=var1/var2/var3/... This is the code I wrote myself: RewriteEngine On RewriteCond %{REQUEST_URI} !=/index.php ...
1
vote
1answer
53 views

301 redirect + RewriteRule not working together?

I am using a 301 redirect to redirect a page to another page in the same website, which uses RewriteRule to hide the PHP variables in a friendly URL. My redirection code in .htaccess: Redirect 301 ...
0
votes
1answer
20 views

How can I rewrite to my .htaccess in PHP? [duplicate]

How to rewrite my URL from http://www.mysite.com/listingsecond.php?ID=1 to http://www.mysite.com/listingsecond? How can I rewrite to my .htaccess in PHP to do this?
0
votes
1answer
121 views

Removing “Dirty URLs”

I have a site that apparently has "dirty URLs". For example a URL that I have goes something like this: www.website.com/article?articleID=2 or something along the lines of that. This, to me, seems to ...
1
vote
1answer
58 views

Redirecting previous domain subfolder links

I've recently bought a domain that was unregistered. After looking in Google webmaster tools, Google is trying to crawl random pages that don't exist. Turns out it did have a previous owner. The ...
5
votes
1answer
785 views

PHP URL Rewrite engine for small project

I use PHP. I want to setup a micro site as a prototype, where I can work with the frontend only, separated from any CMS. URL Rewrite I also want the URL rewrite to be correct, like ...
0
votes
3answers
73 views

RewriteRule was matching before migration, but now browser gets a 404 error

I have this URL rewrite rule in my .htaccess RewriteEngine on RewriteRule ^home$ home.php but when I try to reach awatag.com/home I get a 404 error. This rule worked perfectly before moving the ...
2
votes
1answer
95 views

file need to go through a php page using .htaccess

I'm looking for a way to convert this type of url : h11p://www.mywebsite.com/dl/F5EGD6 Into h11p://www.mywebsie.com/dl/files/my_file.zip sing a PHP page to request the URL from the DB with F5EGD6. I ...
2
votes
2answers
293 views

Mod Rewrite not working on my addon domain

have a wordpress website on my main domain For the wordpress website i have this in my .htaccess file # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond ...
7
votes
1answer
363 views

Problem with .htaccess and mod_rewrite after moving site to new server

The site seems to draw the correct links but its not redirecting me to the correct view. The same code works fine on the old server here http://ruse.systemio.net/q&a/. The new server is here ...