301 Permanent redirects
Hi all, can anyone here please post an example of a complete .htaccess file, including symlinks, the whole page, to include a permanent 301 redirect from example.com/here/index.php to example.com/there/index.php
-
What problem are you facing? You can create a new htaccess with a 302 redirect simply by logging into your cPanel and adding one: cPanel > Domains > Redirects. 0 -
Thanks, am looking for an example page, to examine. 0 -
Using cPanel to create one is the best way to go. 0 -
Thanks, am looking for an example page, to examine.
Using cPanel to create one is the best way to go.
Yep, in some cases, but not in this one.0 -
I'm unclear on your response. What is it you're after that you can't get by creating your own, via cPanel? 0 -
Hi Infopro, as mentioned, I'm wanting to view an actual .htaccess file with all of the code included. 0 -
What's stopping you from creating one to look at exactly, that's whats confusing to me. I just created this one: RewriteEngine on RewriteCond %{HTTP_HOST} ^example.com$ [OR] RewriteCond %{HTTP_HOST} ^www.example.com$ RewriteCond %{REQUEST_URI} !^/[0-9]+..+.cpaneldcv$ RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}.txt(?: Comodo DCV)?$ RewriteRule ^somefilename.php/?(.*)$ "https://example.com/someotherfilename.php$1" [R=01,L]
That server has AutoSSL enabled for this account.0 -
Thanks, I was just trying to see a complete .htaccess file, with *all* the relevant code - ie, symlinks coding as well. 0 -
symlinks coding as well.
Lots of resources on the Web for customizing your htaccess, here's one: perishablepress.com/stupid-htaccess-tricks/0
Please sign in to leave a comment.
Comments
9 comments