Tagged Questions
1
vote
1answer
52 views
.htaccess problems with redirection
I apologize ahead of time that this might be a common question, however I've spent 3-4 hours already on solutions which don't quite fix the problem.
I have a site and it is moving to a different ...
2
votes
2answers
259 views
Mod-rewrite rule broken after host upgrade to Apache 2.4
I use the following code on my site to remove php extension from links:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond ...
0
votes
0answers
45 views
Clean URL using index files or mod_rewrite
Is it better to make clean URL's using index files in directories or simply using mod_rewrite rules to remove the file extensions?
0
votes
1answer
112 views
Getting the masked URL values in Mediawiki
I have successfully masked the URL in Mediawiki. By using the following scripts in .htaccess and localsettings.php files in Mediawiki, i.e.:
.htaccess:
Options +FollowSymLinks
RewriteEngine on
...
1
vote
1answer
40 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 ...
1
vote
1answer
169 views
Don't $_GET value on link rewrite with .htaccess
I config enable htaccess on my server (i enable mod_rewrite and do like this: http://stackoverflow.com/questions/11064005/enable-htacess-error-on-ubuntu-12-04-with-apache2)
But on localhost is run ...
0
votes
2answers
54 views
mod_rewrite issue, won't work when links contain “-”
I've been looking into mod_rewrite for my simple PHP CMS for a couple of days now and I found a rule that was supposed to work for me:
RewriteRule ^(\w+)/?$ view_post.php?url=$1
This is supposed to ...
1
vote
1answer
175 views
Removing 301 redirect from site root
I'm having a look at a friends website (a fairly old PHP based one) which they've been advised needs re-structuring. The key points being:
URLs should be lower case and more "friendly".
The root ...
2
votes
2answers
309 views
Help with URL Rewrite
I have a page that selects some info from a database
and displays it with a link to a second page that uses
the result to query the database, something like this:
$sel=mysql_query("select id, title ...
1
vote
3answers
232 views
Including title page name in PHP URLs
How do I show titles of the page in URLs?
Currently: http://websitename.com/index.php?c_id=18&start=0&m_id=1
Change To: ...
1
vote
2answers
249 views
.htaccess remove index.php/url/ from URL
.htaccess is not working.
/index.php/user -- is working
http://www.example.com/user is not working
Current .htaccess file:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond ...
2
votes
3answers
3k views
.htaccess mod_rewrite 500 internal server error
Whenever I place my .htaccess file in my web directory I receive a 500 internal server error and within the error.log file specifying:
[Sat Jan 21 13:46:07 2012] [error] [client xx.xx.xxx.xx] Request ...
2
votes
1answer
2k views
How do I make SEO friendly URLs from my PHP pages?
I'm pretty new to this and was wondering how to turn my site URLs into SEO friendly URLs using .htaccess and mod_rewrite?
My URLs take the form mydomain.com/index.php?pid=1&pagename=Some Page
I ...
1
vote
2answers
3k views
How do I make SEO friendly URLs?
My url is: website.com/profile/?id=24
I want it to be: website.com/profile/kevinlee
The ?id=24 will be replaced with the username of the id=24 in the database
How do I convert it to that?
5
votes
1answer
6k views
How to pass GET parameters to rewritten URL?
I have an .htaccess rewrite rule like this:
RewriteCond %{SCRIPT_FILENME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^search/(.*)$ search.php?q=$1
What this does is, if someone visits ...