Tagged Questions
0
votes
0answers
35 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
38 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
102 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
118 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
661 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
636 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
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: ...
0
votes
1answer
191 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
9k 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
417 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
6k 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
3k 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 ...
0
votes
1answer
46 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 http://www.example.com/my.products.htm on the new site we are changing the URLs to this ...
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 ...
0
votes
1answer
217 views
How to block access to a sub-site with mod_rewrite?
Let's say I have the sites siteA.com and siteB.com. They are hosted such that siteB.com actually points to siteA.com/siteB.
How can I block someone from visiting siteA.com/siteB using mod_rewrite?
...
1
vote
2answers
593 views
Need some help on tomcat URL mod_rewrite or mod_jk
I am trying to remove the context name from the URL of my server.
Current URL - http://www.domainname.com/MyApp/
What I need to make is to make it available at - www.domainname.com/
So it is only ...
8
votes
6answers
1k views
Poor Man's Clean URLs vs. Mod_Rewrite
At the company where I work, we're getting ready to design a new web site, and there's some disagreement about how to do clean URLs. Over the past year we've been making small improvements to our ...