Questions tagged [s3-rewrite-rules]
20 questions
37
votes
6 answers
Vue.js Router: history mode and AWS S3 (RoutingRules)
I have a Vue.js application up and running with Amazon S3 and Cloudflare.
When I open the index and browse to /dashboard, everything works fine. But when I open a route like dashboard directly in a new tab or refresh the page, I get the following…

mrks
- 5,439
- 11
- 52
- 74
4
votes
0 answers
How to change default page slug?
I have a CPT called jobs and a page named Job Apply. I am trying to achieve something like below url:
http://example.com/job-slug/apply
Where, job-slug can be any job. i.e Programmer, Developer etc..
On clicking job's apply button, it should open…

Vishal Bhatt
- 307
- 1
- 11
2
votes
2 answers
Wordpress/Apache rewrite/redirect rule and regex
I need to do some apache rewrite/redirect rules to external webservice in case of 404 error for specific file extensions: .jpg, .png, etc. Wordpress is used here.
So, if 404 occurs at:
https://test.com/folder/subfolder/year/month/filename.jpg
I want…

gaspar
- 674
- 2
- 10
- 24
2
votes
2 answers
RewriteRule for hiding file extension and change file name
starting url - example.com/vid.php
wanted url - example.com/video
any help, pls, to write the RewriteRule
RewriteCond %{THE_REQUEST} /vid\.php\s [NC]
RewriteRule ???

qadenza
- 9,025
- 18
- 73
- 126
2
votes
1 answer
Amazon S3 rewrite rules redirection issue
We use Amazon S3 storage to host images and its thumbnails. We upload new images without its thumbnails to generate it on demand. To do it, we use S3 rewrite rules which look like this:
…

Eugene Manuilov
- 4,271
- 8
- 32
- 48
1
vote
1 answer
RewriteRule - remove params keys and keep values in address bar
RewriteEngine ON
RewriteRule ^video$ video.php [L]
the above line works
example.com/video is interpret as example.com/video.php
now I need example.com/video?id=5&s=lorem-ipsum
to interpret as example.com/video/5/lorem-ipsum - and vice…

provance
- 877
- 6
- 10
1
vote
0 answers
Add rewrite rule for Update AMP Content
I want to update AMP Content from admin.
I am following steps which is given in following url:
https://developers.google.com/amp/cache/update-cache
As in step
For signature verification, you must serve the public RSA key at a fixed location on the…

sandeep jain
- 71
- 1
- 4
1
vote
0 answers
How setup permalinks for Custom post type with nasted taxonomy terms
i`ve been setup CPT and tax by manual in WPCodex, but I don't have a structure that would suit me.
I have product in term "subterm"
"subterm" is situated in "term" - parent term.
I have: products/subterm/product
I want: products/term/subterm/(and…

Денис Бушаев
- 11
- 2
1
vote
0 answers
Web Config Multiple Rewrite Rule
I am working on angularjs project. this project contains two index pages.
I need to redirect to index1.html for the url domain/Admin/* or redirect to index2.html. i have the following rewrite rule in web config, this always redirect to…

kArtHIcK N.S
- 11
- 1
- 4
1
vote
1 answer
301 Redirects with mod_rewrite
I'm working with mod_rewrite under .htaccess, and I'm trying to redirect (R=301) an URL like this :
http://domain/index.php?folder=AB_CD
to an URL like this
http://domain/AB/CD/
How can I write the rule please ?

HASSAN HAJJAM
- 61
- 6
1
vote
1 answer
Force adding slach to the end in RewriteRule
i'm working with mod_rewrite under .htaccess, and i'm trying to fore adding a slach "/" to the end of the url :
interpret this url : http://domain/ABC/DEF like this http://domain/ABC/DEF/
how can i write the rule please ?

HASSAN HAJJAM
- 61
- 6
0
votes
0 answers
Replace .php with .asp for all urls (inc subdomains)
I tried to find a solution and used the search here, but unfortunately all the variants I could find did not work in my case. I need your help please.
For example, I have a site.com and subdomains (wildcard). All pages have a .php extension.
How can…

rhje
- 7
- 3
0
votes
0 answers
.htaccess with WordPress - specific mod-rewrite rules
I have a "little problem" with .htaccess and WordPress and hope someone can give ma a hint to solve it.
I need a rewrite rule that catches the domain without "www." or "https/www." to be more specific it should route from example.com/code ( without…

basso
- 1
0
votes
0 answers
Rewrite Rules WordPress Returning Category Page Instead of Individual post
I'm trying to change the permalink only to one specific category and it works good on the changing, but the content isn't right.
It's showing the categories page with a lot of posts instead of the proper content of that post.
Can someone help me…
0
votes
1 answer
RewriteRule only works for home page
I have this RewriteRule which create a permanent redirection from example1.com to example2.com
In the htaccess of example1.com I have these rules:
#Options +FollowSymLinks
RewriteEngine on
RewriteRule ^(.*)$ https://www.example2.com/$1…

JPashs
- 13,044
- 10
- 42
- 65