Tagged Questions
2
votes
1answer
67 views
Rewrite catalog/index.php to www.domain.co.uk
We have an online shop with a welcome page. Our SEO company has asked us to get rid of the welcome page with a rewrite. I am struggling to get this to work. Can you help please?
I want to rewrite ...
1
vote
2answers
98 views
How do I redirect www and non but not IP
I am trying to redirect www.domain.com or domain.com to www.domain.com/temp.html
I am using the following code:
RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^/?$ ...
1
vote
1answer
147 views
dynamically rewrite URLs upon the user's selection - is it possible?
In my PHP based web application, there's a form that generates a URL according to the user's selection.
The form has 7 different fields, each one of them affects the final URL, none of them is ...
1
vote
2answers
134 views
htaccess rewrite problem
Maybe is best way to show my problem in one example.
In my .htaccess :
RewriteRule ^catalog/[a-z0-9_-]+-([0-9]+)/[a-z0-9_-]+-([0-9]+)/[a-z0-9_-]+-([0-9]+)/ ...
3
votes
4answers
1k views
How to create .htaccess to block access to a subdirectory that hosts a separate domain
So I am pretty noob at with creating code in .htaccess, but I know it is what I need to accomplish a pretty simple task. So here is what I want to do.
I have a main domain, (me.com), and I am hosting ...
0
votes
2answers
467 views
.htaccess rules to rewrite URLs to front end page?
I am adding a new application to my site at example.com/app. I want views at that URL to always open myapp.php.
E.g.
example.com/app -> example.com/app/myapp.php and
example.com/app/ -> ...
1
vote
2answers
1k views
apache domain redirect to subfolder
I have a hosting account with godaddy. Its a linux system running apache. The way they do their setup is your primary domain is the root folder. When you add a subdomain its in a subfolder of the ...
3
votes
2answers
4k views
Rewrite for robots.txt and favicon.ico
I have setup some rules in which subdomains (my users) will default to where I have located the robots.txt, favicon.ico, and crossdomain.xml
therefore if a user creates a site say
...
0
votes
2answers
80 views
RewriteRules targeting a directory result in a gratuitous redirect
I have a standard CMS-like RewriteRule set up in my .htaccess:
RewriteRule ^(.+)$ index.php?slug=$1
Let's say I have a directory called "foo" in the root directory. For some reason, if you hit the ...
4
votes
1answer
4k views
Properly force SSL with .htaccess, no double authentication
I'm trying to force SSL with .htaccess on a shared host. This means there I only have access to .htaccess and not the vhosts config. I know you can put a rule in the VirtualHost config file to force ...