Tagged Questions
0
votes
0answers
37 views
URL rewrite with mod_rewrite
I have rewrite rule in parent directory which rewrites URL:
From example.com/index.php?id=test&cat=category
To example.com/index?test&cat=category
Here is my .htaccess file:
Options ...
0
votes
1answer
42 views
Capitals in URL subdirectory not changed by htaccess
Within my WordPress website I am redirecting sub directories to internal and external links. Now, when you place a CAPITAL letter in the sub dir it does not work anymore and the website does not show ...
3
votes
1answer
108 views
Remove dynamic generated end of URL
I have a Joomla 2.5 website with joomshopping and AceSEF extension component.
SEF URL generation works just fine except one issue.
For some reason, there are dynamic parts generated in the end of ...
0
votes
1answer
121 views
mod_rewrite and SEO friendliness
My website has an atypical structure and I'm not sure if this could create problems in the long run, specially for SEO positioning purposes.
I have a unique, large PHP script, and I use the Apache ...
0
votes
1answer
673 views
Link to pages on site without .html extension appearing in browser?
I've modified my .htaccess file to allow access to html files without having to include the extension on the end, for example:
www.mysite.com/document
directs to
www.mysite.com/document.html
...
2
votes
2answers
649 views
apache rewriting url doesn't work(using godaddy hosting)
I'm using a framework to create my website(codeigniter) by default the urls are like this:mysite.com/index.php?/etc/etc/etc.
And I'm trying to remove the index.php?, I tried to remove it by doing ...
1
vote
3answers
209 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: ...
0
votes
1answer
193 views
htaccess - “detect” url and redirect
Idea is:
if URL = "http:/localhost/site/"
else if URL = "http:/localhost/site"
redirect to
"http:/localhost/site/index.html"
Can this be done with .htaccess / Apache mod_rewrite and how?
5
votes
3answers
10k views
How to remove trailing slashes from URL with .htaccess?
The situation
Across the entire domain, we'd like the URLs to hide file extensions and remove trailing slashes, independent of the domain name itself (as in, works on any domain).
Sample of our ...
2
votes
1answer
426 views
CMS Made Simple: Why does home page return a 404 under www subdomain?
Anyone know why my homepage wont load with the www prefix.
Links such as
www.mysite.net/about-us
will load fine
but
www.mysite.net
returns a 404.
Everypage works including the home page if I ...
2
votes
1answer
7k views
How to redirect any URL to lowercase URL?
I have this .htaccess files:
ErrorDocument 404 /index.html
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain\.com [NC]
RewriteRule (.*) ...
1
vote
1answer
43 views
Tricky mod_rewrite challenge
I list about 9,000 records on my little site. At the moment I'm showing them with a dynamic page, like
http://domain.com/records.php?id=019031
But I'd like to start using meaningful URLs like this ...
1
vote
1answer
4k views
How to setup mod_rewrite/htaccess to do url masking and forwarding to a subdirectory?
Its been about three years since I've played with apache and php(I've been using thin and nignx ;). So I've forgotten how to setup a mod_rewrite directive to forward all http requests from root to the ...
1
vote
1answer
50 views
mod_rewrite change . to -
I'm moving my site and the URL structure has changed because of the new CMS. The urls would be similar to /my.products.htm on the new site we are changing the URLs to this /my-products is their a way ...
3
votes
2answers
324 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 ...