Tagged Questions
1
vote
1answer
23 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
67 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
44 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
134 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
277 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
208 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
222 views
.htaccess is not working in lease web hosting
.htaccess is not working.
http://www.example.com/index.php/user -- is working
http://www.example.com/user --- is not working
the following file is my .htaccess file.
RewriteEngine on
RewriteCond ...
2
votes
3answers
2k 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
1k 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
2k 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
4k 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 ...
1
vote
3answers
342 views
Transparent PHP script execution using mod_rewrite
I am looking for a solution for this a problem: I need that every HTTP request (method is irrelevant) in Apache http server would be served only after execution of specific PHP script. This is needed ...
1
vote
1answer
164 views
Apache Redirect based on directory name
I'm trying to use one install of Kohana to manage two separate sites rather than just duplicate the install. I have directories like this:
applications/
app1/
app2/
The .htaccess I have ...
2
votes
1answer
592 views
Enable mod_rewrite on OpenSuSE 11.04
I have a problem on OpenSuSE 11.04. I configured apache and enabled mod_rewrite but it doesn't working. on every php file I get 403 forbidden error.
3
votes
1answer
103 views
Can I get IIS to treat some .shtml files as .php files?
I want to be able to get IIS to interpret SHTML files (only in a specific directory) as PHP, and interpret the rest as SHTML.
If so, then how?
3
votes
2answers
322 views
How do I redirect an English language URL to an Arabic language URL?
I have a link that's currently formatted like this:
http://site.com/news/view/1.html
I want to it redirect it to:
http://site.com/خبر/عنوان-الخبر
where خبر is equal to news and
عنوان-الخبر is ...
2
votes
3answers
265 views
Mod Rewrite question
Is there a way to rewrite
http://localhost/embed/player.swf?file=http://www.youtube.com/watch?v=7yKDhm4_-90
to something smaller?
or is there a way to change this into
...
0
votes
2answers
157 views
Is it possible to mod_rewrite BASED on the existence of a file/directory and uniqueID?
My site currently forces all non www. pages to use www.
Ultimately, I am able to handle all unique subdomains and parse correctly but I am trying to achieve the following:
(ideally with ...